<template>
  <svg
    :width="size"
    :height="size"
    viewBox="0 0 16 16"
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    class="inline-block cursor-pointer"
    v-on="$listeners"
  >
    <title>{{ title }}</title>
    <g id="文件下载" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
      <g id="组织结构-收起组织树" transform="translate(-592.000000, -371.000000)" fill-rule="nonzero">
        <g id="编组-11" transform="translate(252.000000, 116.000000)">
          <g id="文件列表-上传成功备份-5" transform="translate(47.344743, 247.000000)">
            <g id="图标_文件列表_-download" transform="translate(293.309663, 8.000000)">
              <rect id="矩形" fill="#333333" opacity="0" x="0" y="0" width="15.8545764" height="16"></rect>
              <g id="编组" transform="translate(1.981822, 2.000000)" :fill="fillColors[type]">
                <path
                  d="M11.3580061,10.1516272 L0.487851442,10.1516272 C0.222625165,10.1516272 0.00687114708,10.3693602 0.00687114708,10.6370192 C0.00687114708,10.9046783 0.222625165,11.1224112 0.487851442,11.1224112 L11.3593803,11.1224112 C11.6246066,11.1224112 11.8403606,10.9046783 11.8403606,10.6370192 C11.8403606,10.3693602 11.6246066,10.1516272 11.3580061,10.1516272 Z M2.31695079,6.17557322 L5.6109787,8.92011834 C5.61372716,8.92289201 5.61784985,8.92566568 5.62059831,8.92705251 C5.62197254,8.92843935 5.62334677,8.92982618 5.62609523,8.93121302 C5.6343406,8.93676036 5.64258598,8.94369453 5.65083136,8.94924186 C5.65220559,8.9506287 5.65357981,8.9506287 5.65495404,8.95201553 C5.69618093,8.97975222 5.7415305,9.00055473 5.7882543,9.01303624 C5.81299043,9.01997041 5.83772656,9.02551775 5.86383691,9.02829142 L5.86933383,9.02829142 C5.87620498,9.02829142 5.88307613,9.02967825 5.88857304,9.02967825 L5.95041337,9.02967825 C5.95591029,9.02967825 5.9614072,9.02829142 5.96690412,9.02829142 C5.96965258,9.02829142 5.97240104,9.02829142 5.9751495,9.02690459 C5.98064642,9.02690459 5.98614333,9.02551775 5.99164025,9.02413092 C5.99438871,9.02413092 5.99713717,9.02274408 5.99988563,9.02274408 C6.00675677,9.02135725 6.01500215,9.01997041 6.0218733,9.01858358 C6.02462176,9.01858358 6.02599599,9.01719675 6.02874444,9.01719675 C6.03424136,9.01580991 6.03973828,9.01442308 6.04386097,9.01303624 C6.04798366,9.01164941 6.05073212,9.01164941 6.0548548,9.01026257 L6.06722287,9.00610207 C6.07134556,9.00471524 6.07546824,9.0033284 6.0782167,9.00194157 C6.08096516,9.00055473 6.08508785,8.9991679 6.08783631,8.99778107 C6.10295283,8.99223373 6.11806936,8.98529956 6.13318588,8.97836538 C6.13456011,8.97697855 6.13730857,8.97697855 6.1386828,8.97559172 C6.14280549,8.97281805 6.1483024,8.97004438 6.15242509,8.96727071 C6.15379932,8.96588388 6.15654778,8.96449704 6.15792201,8.96449704 C6.16341893,8.96172337 6.16754162,8.9589497 6.1716643,8.95617604 C6.17303853,8.95617604 6.17441276,8.9547892 6.17441276,8.9547892 C6.18952929,8.94508136 6.20464581,8.93398669 6.2183881,8.92289201 L6.22251079,8.91873151 L9.52753254,6.17418639 C9.73229272,6.00360577 9.76252577,5.69850222 9.59349555,5.49047707 C9.42446533,5.28383876 9.12213486,5.2533284 8.91600045,5.42390902 L6.39841216,7.51664201 L6.39841216,0.485392012 C6.39841216,0.217732988 6.18265814,0 5.91743186,0 C5.65220559,0 5.43645157,0.217732988 5.43645157,0.485392012 L5.43645157,7.51525518 L2.92848288,5.42668269 C2.7237227,5.25610207 2.420018,5.28522559 2.25098778,5.49186391 C2.08333179,5.69850222 2.11219061,6.0049926 2.31695079,6.17557322 Z"
                ></path>
              </g>
            </g>
          </g>
        </g>
      </g>
    </g>
  </svg>
</template>

<script>
export default {
  name: "SvgIconDownload",
  props: {
    size: {
      type: Number,
      default: 24,
    },
    type: {
      type: String,
      default: "primary",
    },
    title: {
      type: String,
      default: "下载",
    },
  },
  data() {
    return {
      fillColors: {
        primary: "#1D7FF2",
        info: "#BAC3D3",
      },
    };
  },
};
</script>
